To understand the micro
service architecture, let's take an example of
a ride sharing application. Instead of developing it as a monolith,
this application can be decomposed into various parts as shown, and
can be developed individually. The client can be a mobile device or
a desktop browser client. The services can effortlessly
communicate with one another. If we want to change the authentication
type from JWT to show off, this can be done without changing other
microservices in the application. Change in the Db schema of the billing
service will not affect other services. Let's look at the microservice
architecture in detail. Microservice architecture is a method
of enterprise software development, as a suite of independently
deployable small modular services. In which each service runs a unique
process and communicates through it well defined, lightweight mechanism
to serve a business goal. Microservices have been gaining ground in
software development since the term came into existence. Microservice architecture is a variant
of Service Oriented Architecture or SOA. For developing large applications where
services are grained into chunks, as per the business domain. It provides continuous delivery and
deployment of complex applications, and makes the application easier to
understand, develop and test and more resilient to architecture erosion. The microservice architecture provides
a new way to weave the existing system, in novel ways, in order to deliver
software solutions quickly. Many enterprise software development
companies are eager to adopt it, due to its ability to provide modularity,
scalability and availability. Also, microservices architecture
is suitable when it's required to support different kinds of client,
such as desktop browsers, mobile browsers and
native mobile applications. And it's required to integrate with other
applications through Web services or a message broker.